package Demo08;

public enum Direction {

    East("东"),South("南"),West("西"),North("北");

    private final String name;
    //重载构造器
    Direction(String name) {
        this.name = name;
    }

    public String getName(){
        return this.name;
    }
}
